{layout name="p/base_1"}
<div id="wrapper">
  <div id="page-wrapper">
		<div class="row">
			<div class="col-lg-12">
				<h1>
					资讯文章管理 <small>文章信息编辑</small>
				</h1>
				<ol class="breadcrumb">
					<li>
						<a href="index.php">
							<i class="fa fa-dashboard">
							</i> 管理首页
						</a>
					</li>
					<li>
						<a href="/messagearticle">
							<i class="fa fa-dashboard">
							</i> 资讯文章列表信息
						</a>
					</li>
					<li class="active">
						<i class="fa fa-table">
						</i> 文章信息编辑
					</li>
				</ol>
				<div class="alert alert-success alert-dismissable">
					<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
						&times;
					</button>
					请准确编辑文章信息
				</div>
			</div>
		</div>
		<!-- 基本信息start -->
		<div class="col-lg-12">
			<!-- 会员信息start -->
			<form class="form-horizontal" role="form" action="/messagearticle/{$data.id}" method="post">
      	<input type="hidden" id='method' name="_method" value="PUT">
				<div class="form-group">
					<label class="control-label col-sm-2">标题</label>
					<div class="col-sm-4">
						<input class="form-control" type="text" name="title"  value="{$data.title}" placeholder="请填写文章标题">
					</div>
					<label class="control-label col-sm-2">所属分类</label> 
					<div class="col-sm-4">
						<select name="message_category_id" class="form-control">
							{foreach name='megArt' key='k' item='v'}
							<option value="{$k}" {if condition = "$k eq $data.message_category_id"} selected="selected" {/if}>{$v}</option>
							{/foreach}
						</select>
					</div>
				</div>
				<div class="form-group ">
					<label class="control-label col-sm-2">来源</label> 
					<div class="col-sm-4">
						<input class="form-control" type="text" name="source" value="{$data.source}" placeholder="请填写文章来源" >
					</div>
					<label class="control-label col-sm-2">来源网址</label> 
					<div class="col-sm-4">
						<input class="form-control" type="text" name="url" value="{$data.url}" placeholder="请填写文章来源网址" >
					</div>
				</div>
				<!-- 内容编辑start -->
				<div class="col-lg-12">
					<div class="btn-toolbar" data-role="editor-toolbar" data-target="#editor">
						<div class="btn-group">
							<a class="btn dropdown-toggle" data-toggle="dropdown" title="字体">
								<i class="icon-font">
								</i>
								<b class="caret">
								</b>
							</a>
							<ul class="dropdown-menu">
							</ul>
						</div>
						<div class="btn-group">
							<a class="btn dropdown-toggle" data-toggle="dropdown" title="字体大小">
								<i class="icon-text-height">
								</i>&nbsp;
								<b class="caret">
								</b>
							</a>
							<ul class="dropdown-menu">
								<li>
									<a data-edit="fontSize 5">
										<font size="5">Huge</font>
									</a>
								</li>
								<li>
									<a data-edit="fontSize 3">
										<font size="3">Normal</font>
									</a>
								</li>
								<li>
									<a data-edit="fontSize 1">
										<font size="1">Small</font>
									</a>
								</li>
							</ul>
						</div>
						<div class="btn-group">
							<a class="btn" data-edit="bold" title="粗体 (Ctrl/Cmd+B)">
								<i class="icon-bold">
								</i>
							</a>
							<a class="btn" data-edit="italic" title="斜体(Ctrl/Cmd+I)">
								<i class="icon-italic">
								</i>
							</a>
							<a class="btn" data-edit="strikethrough" title="删除线">
								<i class="icon-strikethrough">
								</i>
							</a>
							<a class="btn" data-edit="underline" title="下划线 (Ctrl/Cmd+U)">
								<i class="icon-underline">
								</i>
							</a>
						</div>
						<div class="btn-group">
							<a class="btn" data-edit="insertunorderedlist" title="Bullet list">
								<i class="icon-list-ul">
								</i>
							</a>
							<a class="btn" data-edit="insertorderedlist" title="Number list">
								<i class="icon-list-ol">
								</i>
							</a>
							<a class="btn" data-edit="outdent" title="Reduce indent (Shift+Tab)">
								<i class="icon-indent-left">
								</i>
							</a>
							<a class="btn" data-edit="indent" title="Indent (Tab)">
								<i class="icon-indent-right">
								</i>
							</a>
						</div>
						<div class="btn-group">
							<a class="btn" data-edit="justifyleft" title="Align Left (Ctrl/Cmd+L)">
								<i class="icon-align-left">
								</i>
							</a>
							<a class="btn" data-edit="justifycenter" title="Center (Ctrl/Cmd+E)">
								<i class="icon-align-center">
								</i>
							</a>
							<a class="btn" data-edit="justifyright" title="Align Right (Ctrl/Cmd+R)">
								<i class="icon-align-right">
								</i>
							</a>
							<a class="btn" data-edit="justifyfull" title="Justify (Ctrl/Cmd+J)">
								<i class="icon-align-justify">
								</i>
							</a>
						</div>
						<div class="btn-group">
							<a class="btn dropdown-toggle" data-toggle="dropdown" title="Hyperlink">
								<i class="icon-link">
								</i>
							</a>
							<div class="dropdown-menu input-append">
								<input class="span2" placeholder="URL" type="text" data-edit="createLink"/>
								<button class="btn" type="button">
									Add
								</button>
							</div>
							<a class="btn" data-edit="unlink" title="Remove Hyperlink">
								<i class="icon-cut">
								</i>
							</a>
						</div>
						<div class="btn-group">
							<a class="btn" title="Insert picture (or just drag & drop)" id="pictureBtn">
								<i class="icon-picture">
								</i>
							</a>
							<input type="file" data-role="magic-overlay" data-target="#pictureBtn" data-edit="insertImage" />
						</div>
						<div class="btn-group">
							<a class="btn" data-edit="undo" title="Undo (Ctrl/Cmd+Z)">
								<i class="icon-undo">
								</i>
							</a>
							<a class="btn" data-edit="redo" title="Redo (Ctrl/Cmd+Y)">
								<i class="icon-repeat">
								</i>
							</a>
						</div>
						<input type="text" data-edit="inserttext" id="voiceBtn" x-webkit-speech="">
					</div>
					<div id="editor" contenteditable="true">
						输入内容&hellip;
					</div>
					<div class="form-group">
						<div class="modal-footer">
			        <a type="button" href="/messagearticle" class="btn btn-default" >返回</a>
			        <button type="submit" class="btn btn-primary">提交</button>
			      </div>
				</div>
				</div>
				<!-- 内容编辑end -->
			</form>
			<!-- 会员信息end -->
		</div>
		<!-- 基本信息end -->
	</div><!-- /#page-wrapper -->

</div><!-- /#wrapper -->

  </body>
</html>
